home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Sep 90 / MacApp.Tech$ 9⁄14⁄90 / 1971-Re Font change for E-Sep90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  2.2 KB  |  57 lines  |  [TEXT/GEOL]

  1. Item    2626005                         12-Sept-90        18:49PDT
  2.  
  3. From:   AUST0338                        AUPtnr - Tactics Int'l,Shillito,IDV
  4.  
  5. To:     BBSF.DEV                        Babcock & Brown, Michael Harper,AST
  6.  
  7. cc:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    Re: Font change for EditText
  10.  
  11. To:         BBSF.DEV - Michael Harper
  12. From:       AUST0338 - David Shillito
  13. Date:       13th September 1990
  14. Subject:    Re: Font change for EditText
  15.  
  16. Here is the Rez source for my password dialog. As you can see in the 'PSWD'
  17. EditText item the special password font (which I incorporate into my
  18. application's resource file) is named "Password". The technique is exactly the
  19. same whether the font is in the application file or the system file.
  20.  
  21. David Shillito
  22.  
  23.  
  24. resource 'view' (cPasswordDialog, "cPasswordDialog", purgeable) {{
  25.  
  26.    root, 'WIND', {0, 0}, {168, 216}, sizeFixed, sizeFixed, shown, enabled,
  27.    Window {"", dBoxProc, noGoAwayBox, notResizable, modal, doFirstClick,
  28.    freeOnClosing, disposeOnFree, doesntCloseDocument, dontOpenWithDocument,
  29.    dontAdaptToScreen, dontStagger, forceOnScreen, center, 'DLOG',
  30.    "Enter Password Dialog"},
  31.  
  32.    'WIND', 'DLOG', {0, 0}, {168, 216}, sizeSuperView, sizeSuperView, shown,
  33. enabled,
  34.    DialogView {"", 'OK  ', 'CNCL'},
  35.  
  36.    'DLOG', noID, {8, 8}, {16, 200}, sizeFixed, sizeFixed, shown, disabled,
  37.    StaticText {"", noAdornment, sizeable, notDimmed, notHilited,
  38.    doesntDismiss, noInset, plain, 0, {0xBFFF, 0x0, 0x0}, "", justCenter,
  39.    "Enter Password…"},
  40.  
  41.    'DLOG', 'TITL', {32, 8}, {68, 200}, sizeFixed, sizeFixed, shown, disabled,
  42.    StaticText {"", adnFrame, {1, 1}, sizeable, notDimmed, notHilited,
  43.    doesntDismiss, {3, 3, 3, 3}, systemFont, justCenter,
  44.    "Very long text on more than one line"},
  45.  
  46.    'DLOG', 'PSWD', {108, 8}, {22, 200}, sizeFixed, sizeFixed, shown, enabled,
  47.    EditText {"", adnFrame, {1, 1}, sizeable, notDimmed, notHilited,
  48.    doesntDismiss, {3, 3, 3, 3}, plain, 0, black, "Password", justLeft, "", 31,
  49.    arrowsAndBackspace},
  50.  
  51.    'DLOG', 'OK  ', {140, 60}, {28, 88}, sizeFixed, sizeFixed, shown, enabled,
  52.    Button {"", adnRRect, {3, 3}, sizeable, notDimmed, notHilited,
  53.    dismisses, {4, 4, 4, 4}, systemFont, "OK"}
  54.    }
  55. };
  56.  
  57.